const Service = require('egg').Service;

class BaseService extends Service {
    async run(callback){
        const {ctx,app} = this;
        try {
            if(callback) return callback(ctx,app);
        }catch(err){
            console.log('------------------Service ERROR--------------------------');
            console.log(err);
            return null;
        }
    }
}
module.exports = BaseService;